package org.onion.pattern.event.springboot.rocketmq.annotation;

import org.onion.pattern.event.spring.autoconfigure.OnionPatternEventAutoConfigure;
import org.onion.pattern.event.springboot.rocketmq.autoconfigure.RocketMQEventAutoConfigure;
import org.onion.pattern.event.springboot.rocketmq.autoconfigure.RocketMQEventConfigurationSelector;
import org.springframework.boot.autoconfigure.ImportAutoConfiguration;
import org.springframework.context.annotation.Import;

import java.lang.annotation.*;


@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Import(RocketMQEventConfigurationSelector.class)
@ImportAutoConfiguration({RocketMQEventAutoConfigure.class, OnionPatternEventAutoConfigure.class})
public @interface EnableRocketMQEvent {

    /**
     * 是否开启消费模式
     */
    boolean enableConsume() default true;

}
